package com.example.eightapi.controller;



import com.example.eightapi.pojo.code_num;
import com.example.eightapi.service.CodenumService;
import com.example.eightapi.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class CodenumController {
    @Autowired
    private CodenumService codenumService;
    @GetMapping("/queryAllcodenum")
    public ResponseResult<List<code_num>> queryAllcodenum (){
        List<code_num>pf =codenumService.queryAllcodenum();
        return new ResponseResult<>("200","查询成功",pf);
    }
}
